<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class admin_checkuplog extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function __construct() {
		parent::__construct();
		ini_set('session.cookie_httponly',1); 
		ini_set('session.use_only_cookies',1);
		$this->load->model('admin/get_checkuplog_class');
	}	 
	public function get_list_checkuplog(){
		$data=array();
		
		$checkuplog = $this->get_checkuplog_class->list_checkuplog_class();
		if($checkuplog!=0){
			foreach($checkuplog as $key=>$value){
				$data['intID'][$key]=$value['intID'];
				$data['intUserID'][$key]=$value['intUserID'];					
				$data['strNoteTitle'][$key]=$value['strNoteTitle'];			
				$data['dateNoteDate'][$key]=$value['dateNoteDate'];			
				$data['strNotes'][$key]=$value['strNotes'];			
				$data['intDisabled'][$key]=$value['intDisabled'];			
				$data['strCreatedBy'][$key]=$value['strCreatedBy'];			
				$data['dateCreatedDate'][$key]=$value['dateCreatedDate'];			
				$data['strModifiedBy'][$key]=$value['strModifiedBy'];			
				$data['dateModifiedDate'][$key]=$value['dateModifiedDate'];			
			}
		}
		echo json_encode($data);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */